SET SPRITE PRIORITY
This command will set the relative priority of the specified sprite.
SET SPRITE PRIORITY Sprite Number, Priority
Sprite Number
Integer
The sprite number
Priority
Integer
All sprites start with a value of zero giving them equal chance of being drawn last. By setting a single sprite a value of one will cause that sprite to be drawn last
This command does not return a value.
All sprites start with a value of zero giving them equal chance of being drawn last. By setting a single sprite a value of one will cause that sprite to be drawn last. You can specify a unique priority value for each sprite creating an order of drawing for every sprite in your program.
load image "man.bmp",1
cls
sprite 1,100,100,1
set sprite priority 1,10
do
loop
end
SPRITE Commands Menu
Index